import './assets/styles/index.css'

import { createApp } from 'vue'
import { setupRouter } from './router'
import { setupAntIcons } from './components/icon/icons'
import pinia from './store'
import App from './App.vue'

import 'virtual:svg-icons-register'

const app = createApp(App)

async function setupApp() {
  app.use(pinia)
  setupAntIcons(app)
  await setupRouter(app)
  await app.mount('#app')
}

setupApp()
